package cn.gson.crm.model.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import lombok.Data;
/**
 * 财务：大学生学费信息表
 * @author john
 *
 */
@Data
@Entity
@Table(name="tb_cw_university_tuition")
public class UniversityTuition {

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="tb_university_tuition_id")
	private Long id;
	
	//学生与学费信息：一对一 
	@OneToOne
	@JoinColumn(name="student_id")
	private Student student;
	
	//分期承诺书
	@Column(name="fen_qi")
	private String fenQi;
	
	
	//应交
	@Column(name="ying_jiao")
	private Double yingJiao;
	
	//实交
	@Column(name="shi_jiao")
	private Double shiJiao;
	
	//欠交
	@Column(name="qian_jiao")
	private Double qianJiao;
	
	// 多对一：大学生学费信息与班级
	@ManyToOne
	@JoinColumn(name="class_id")
	private Classes classes;
	
	 //是否删除
	private Boolean deleted;

}
